package com.sbl.service.impl;

import com.sbl.dao.IAccountDao;
import com.sbl.service.IAccountService;

import java.util.Date;

public class AccountServiceImpl2 implements IAccountService {

    //如果是经常变化的数据，并不适用于注入的方式
    private String name;
    private Integer age;
    private Date birthday;

    public AccountServiceImpl2() {
    }

    public AccountServiceImpl2(String name, Integer age, Date birthday) {
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    public void  saveAccount(){
        System.out.println("service2 中的saveAccount方法执行了。。。"+name+","+age+","+birthday);
    }

    public void saveAccount(IAccountDao iAccountDao) {

    }
}
